package org.freedom.fastdevpt.core.base;

public class BaseQuery  {
 
	private int page;
	private int rows;
	private String q;
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public int getRows() {
		return rows;
	}
	public void setRows(int rows) {
		this.rows = rows;
	}
	
	public int getStart(){
		return page>0?(page-1)*rows:0;
	}
	public String getQ() {
		return q;
	}
	public void setQ(String q) {
		this.q = q;
	}
	
}
